import React from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import BottomTabNavigator from './BottomTabNavigator';
import YveScreen from '../dxh/yve';
import TixinScreen from '../dxh/tixin';
import HuiScreen from '../dxh/hui';
import FuwuScreen from '../dxh/fuwu';
import YouhuiScreen from '../dxh/youhui';
import PointsMallScreen from '../wyk/PointsMallScreen';
import RoomDetailScreen from '../wyk/RoomDetailScreen';

const Stack = createNativeStackNavigator();

const StackNavigator = () => {
    return (
        <Stack.Navigator>
            <Stack.Screen
                name="Main"
                component={BottomTabNavigator}
                options={{ headerShown: false }}
            />
            <Stack.Screen
                name="Yve"
                component={YveScreen}
                options={{
                    title: '我的余额',
                    headerStyle: {
                        backgroundColor: '#394867',
                    },
                    headerTintColor: '#fff',
                    headerTitleStyle: {
                        fontWeight: 'bold',
                    },
                }}
            />
            <Stack.Screen
                name="Tixin"
                component={TixinScreen}
                options={{
                    title: '提现',
                    headerStyle: {
                        backgroundColor: '#394867',
                    },
                    headerTintColor: '#fff',
                    headerTitleStyle: {
                        fontWeight: 'bold',
                    },
                }}
            />
            <Stack.Screen
                name="Hui"
                component={HuiScreen}
                options={{
                    title: '我的会员',
                    headerStyle: {
                        backgroundColor: '#394867',
                    },
                    headerTintColor: '#fff',
                    headerTitleStyle: {
                        fontWeight: 'bold',
                    },
                }}
            />
            <Stack.Screen
                name="Fuwu"
                component={FuwuScreen}
                options={{
                    title: '我的服务券',
                    headerStyle: {
                        backgroundColor: '#394867',
                    },
                    headerTintColor: '#fff',
                    headerTitleStyle: {
                        fontWeight: 'bold',
                    },
                }}
            />
            <Stack.Screen
                name="Youhui"
                component={YouhuiScreen}
                options={{
                    title: '我的优惠券',
                    headerStyle: {
                        backgroundColor: '#394867',
                    },
                    headerTintColor: '#fff',
                    headerTitleStyle: {
                        fontWeight: 'bold',
                    },
                }}
            />
            <Stack.Screen
                name="PointsMall"
                component={PointsMallScreen}
                options={{
                    headerShown: false
                }}
            />
            <Stack.Screen
                name="RoomDetail"
                component={RoomDetailScreen}
                options={{
                    headerShown: false
                }}
            />
        </Stack.Navigator>
    );
};

export default StackNavigator; 